# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=asteroid
pkgname=asteroid-stopwatch
pkgver=2.0.0
pkgrel=0
pkgdesc="Default stopwatch app for AsteroidOS"
url="https://github.com/AsteroidOS/asteroid-stopwatch"
# armhf blocked by qml-asteroid
arch="all !armhf"
license="GPL-3.0-or-later"
depends="mapplauncherd"
makedepends="
	extra-cmake-modules
	qml-asteroid-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	samurai
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/AsteroidOS/asteroid-stopwatch/archive/refs/tags/$pkgver.tar.gz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
7bb3fc9b9853bdd226f9ada224337a8b9acc1a0ddcb235a84cbf09822ee97f976e75316a3011fbc416c3f61ba01dec7e1c2177956fa82efca01df04059559f53  asteroid-stopwatch-2.0.0.tar.gz
"
